package priv.zgh.forum.exception;

public class ForumException extends RuntimeException {
    // 默认错误代码
    private int errCode = 20001;
    // 默认错误信息
    private String message = "服务器错误!";

    public ForumException(){}
    public ForumException(int code, String message){
        this.errCode = code;
        this.message = message;
    }

    public int getCode(){
        return this.errCode;
    }

    public String getMessage(){
        return this.message;
    }
}
